package com.example.bbgds.test.home.widget;

import android.content.Context;
import android.content.Intent;
import android.view.View;

/**
 * Created by zjzhu on 2016/4/26.
 */
public class AppItemInfo extends ItemInfo {

    private AppItemTheme mTheme;
    private String mTitle;
    private int mIconResId;
    private Intent mIntent;

    public AppItemInfo(AppItemTheme theme, String title, int iconResId) {
        mViewType = ItemInfo.VIEWTYPE_APP;
        mTheme = theme;
        mTitle = title;
        mIconResId = iconResId;
    }

    public AppItemInfo setLaunchIntent(Intent intent) {
        mIntent = intent;
        return this;
    }

    public AppItemTheme getTheme() {
        return mTheme;
    }

    public String getTitle() {
        return mTitle;
    }

    public int getIconResId() {
        return mIconResId;
    }

    public Intent getLaunchIntent() {
        return mIntent;
    }

    public View getStatusIndicatorView(Context context) {
        return null;
    }
}
